#include <stdio.h>

#define LOG "log.txt"

int main()
{
    FILE* fp = fopen(LOG, "w");
    if (fp == NULL)
    {
        perror("fopen::");
    }
    fputs("hello world\n", fp);
    fclose(fp);
    return 0;
}
